package Regex;

import java.util.Scanner;

public class regex_01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        checkPhone(next);

    }


    public static void checkPhone(String s){
        while (true){
            System.out.println("please input your phone number");
            if (s.matches("1[3-9]\\d{9}"))
            {
                System.out.println("手机号码格式正确");
                break;
            }
            else {
                System.out.println("false");
            }
        }
    }
}
